package top.healthylife.gateway.platform.baihang.api.api.rankauthentication;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.rankauthentication.name0001.req.BHReqPSTwoElementsDto;
import top.healthylife.gateway.platform.baihang.dto.rankauthentication.name0001.res.BHResPSTwoElementsDto;

/**
 * 公安二要素认证
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "公安二要素认证" , info = "认证居民身份证的姓名、身份证号是否匹配")
public class BHPSTwoElementsApi implements ParentFace<BHReqPSTwoElementsDto, BHResPSTwoElementsDto> {

    private static final String PRODUCT_CODE = "NAME0001";

    @Override
    public BHResPSTwoElementsDto execute(BHReqPSTwoElementsDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResPSTwoElementsDto.class);
    }
}
